<?php
namespace App\Repos;

use App\Models\Order;
use App\Models\OrderPoint;

class OrderPointRepo
{
	public static function getByProduct($where=[],$num=10)
	{	   
	  	$list = OrderPoint::where($where)->paginate($num); 
	  	return $list;     
	}

	public static function getByOrder($where=[],$num=10)
	{	   
	  	$list = OrderPoint::where($where)->paginate($num); 
	  	return $list;     
	}

	
	
	

	
	
	
}